<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<?php include("include/header.php");?>
<card id="attachment-<?php echo $post->ID;?>" title="<?php echo $this->setting->blogname; ?> | <?php echo $this->setting->blogdescription; ?>">
<?php 
if(isset($comment) && isset($comment->Message)) {
	echo "评论发表" . (is_numeric($comment->Message) ? "成功!" : "失败：" . $comment->Message);
	echo "<br/>";
}
?>
<?php echo $nav; ?><br/>
<?php echo $post->title; ?><br/>
<?php echo date("Y/m/d H:i", $post->time); ?><br/><br/>
<?php
if(preg_match('/^image\//i', $post->mime_type)){
	@include("include/attachment-image.php");
}
if(preg_match('/^audio\//i', $post->mime_type)){
	@include("include/attachment-audio.php");
}
?><br/><br/>
<?php include("include/comment.php");?>
<?php include("include/footer.php");?>
</card>
</wml>